package com.example.controller;


import com.example.service.ShowBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: cloud_market
 * @description: 短信业务整体展示
 * @author: ChenZhiXiang
 * @create: 2019-08-06 14:59
 **/
@RestController
@RequestMapping("/business")
public class ShowBusinessController {

    @Autowired
    private ShowBusinessService showBusinessService;


    @RequestMapping(value = "/smsCount", method = RequestMethod.GET)
    public Object smsCount(@RequestParam("orgId") String orgId) throws Exception {

        return showBusinessService.findSmsCount(orgId);
    }

    @RequestMapping(value = "/smsCoun", method = RequestMethod.GET)
    public Object smsCoun(@RequestParam("orgId") String orgId) throws Exception {

        return showBusinessService.findSmsCoun(orgId);
    }

    @RequestMapping(value = "/smsCou", method = RequestMethod.GET)
    public Object smsCou(@RequestParam("orgId") String orgId) throws Exception {

        return showBusinessService.findSmsCou(orgId);
    }
}
